package com.atguigu.tingshu.order.mapper;

import com.atguigu.tingshu.model.order.OrderInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface OrderInfoMapper extends BaseMapper<OrderInfo> {

  /***
   * 查询用户购买过和未支付的专辑订单的数据
   */
  Integer selectOrderCountAlbum(@Param("itemId") Long itemId, @Param("userId") Long userId);
}
